package com.hqins.app.cloud.feignclient;

import com.hqins.app.cloud.common.ResponseObject;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;



@Service
@FeignClient(value = "service-hi",fallback = HelloServiceHiHystric.class)
public interface HelloService {

        @RequestMapping(value = "/hi/{name}", method = RequestMethod.GET)
        ResponseObject sayHiFromClientOne(@PathVariable(value = "name") String name);

    }
